<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<form id="form-integralOrder-edit" th:object="${integralOrder}">
    <input id="orderId" name="orderId" th:field="*{orderId}"  type="hidden">
    <div class="middle-box text-center animated fadeInDown">
        <h2 style="margin-top: 40px" class="font-noraml" id="title-content"></h2>
    </div>
</form>
<div th:include="include::footer"></div>
<script type="text/javascript">

    $(function(){
        $("#title-content").text("确定核销兑换商品");
    });

    var prefix = ctx + "business/integralOrder";
    function submitHandler() {
        $.ajax({
            type: "post",
            url: prefix + "/cancelGoods",
            data: {
                "orderId":$("#orderId").val(),
                "exchangeStatus":"1"
            },
            success: function(r) {
                if (r.code === web_status.SUCCESS) {
                    $.modal.msgReload("核销完成！");
                }
            }
        });
    }
</script>
</body>
</html>
